package com.frank.stock4j.tusharepro.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.time.LocalDate;
import com.frank.stock4j.tusharepro.bean.FutMappingBean;

/**
* 描述：获取期货主力（或连续）合约与月合约映射数据
* @author: codesmith
**/
@Data
@TableName("fut_mapping")
public class FutMappingEntity implements FutMappingBean {
    
    /*
    * 连续合约代码
    */
    @TableId
    @TableField("`ts_code`") protected String tsCode;
    /*
    * 起始日期
    */
    @TableId
    @TableField("`trade_date`") protected LocalDate tradeDate;
    /*
    * 期货合约代码
    */
    @TableId
    @TableField("`mapping_ts_code`") protected String mappingTsCode;
}